import type { RouteRecordRaw } from 'vue-router'

export const studentRoutes: RouteRecordRaw[] = [
  {
    path: '/student',
    name: 'student',
    component: () => import('@/layouts/MainLayout.vue'),
    meta: { title: '学生端' },
    children: [
      {
        path: 'task',
        name: 'student-task',
        component: () => import('@/views/student/task/index.vue'),
        meta: { title: '任务提交' }
      },
      {
        path: 'task/detail/:id',
        name: 'student-task-detail',
        component: () => import('@/views/student/task/detail.vue'),
        meta: { title: '任务详情' }
      },
      {
        path: 'task/submit/:id',
        name: 'student-task-submit',
        component: () => import('@/views/student/task/submit.vue'),
        meta: { title: '提交任务' }
      },
      {
        path: 'notification',
        name: 'studentNotificationManagement',
        component: () => import('@/views/notification/index.vue'),
        meta: {
          title: '通知管理',
          icon: 'BellOutlined'
        }
      },
    ]
  }
]